package com.wn.consumer;

import com.rabbitmq.client.AMQP;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @author yellow Docter
 * @date 2022 -08-31
 * @desc
 */
@SpringBootApplication
public class RabbitMQConsumerApplication {

   Queue queue;

    public static void main(String[] args) {
        SpringApplication.run(RabbitMQConsumerApplication.class,args);

    }

    @Bean
    public MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }

}
